import request from './request'
// 登录
export const LoginApi=(data)=>request.post('/login',data)
// 列表
export const ListApi=()=>request.get('/article/list')
// 新增
export const addApi=(data)=>request.post('/article',data)
// 详情
export const detailApi=(id)=>request.get(`/article/${id}`,id)
// 搜索
export const searchApi=(keyword)=>request.get('/article/list',{params:{keyword}})